package edu.sctu.liangyuxiang.day20150510.text3;

/**
 * Created by user06 on 2015/5/10.
 */
public class TextTwo {

    public void output(TextOne[] textone){
        for (TextOne texton : textone) {

            if (texton.getAge() > 20) {
                System.out.println("姓名：" + texton.getName() + "年龄：" + texton.getAge() + "学号：" + texton.getNumber());
            }
        }
    }
    }